From: Keir Fraser Date: Tue, 20 Oct 2009 07:43:27 +0000 (+0100) Subject: xend: Cast oos flag to int before arithmetic. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13198 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=5cee2dafd8e2e76f7cc2a783102399822b5bb554;p=xen.git xend: Cast oos flag to int before arithmetic. Signed-off-by: Keir Fraser --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 98214d92ce..bf3c396ea4 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2421,7 +2421,7 @@ class XendDomainInfo: s3_integrity = self.info['s3_integrity'] oos = self.info['platform'].get('oos', 1) - oos_off = 1 - oos + oos_off = 1 - int(oos) flags = (int(hvm) << 0) | (int(hap) << 1) | (int(s3_integrity) << 2) | (int(oos_off) << 3)